package com.apes.scm.masterdata.area.model;

import com.apes.framework.jpa.DefaultPersistListener;
import com.apes.framework.jpa.Model;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.SelectBeforeUpdate;

import javax.persistence.*;

/**
 * 功能：国家
 * @author HuJianlin
 * @create 2018-03-05 15:11
 */
@Getter
@Setter
@SelectBeforeUpdate
@DynamicInsert
@DynamicUpdate
@Entity
@EntityListeners(DefaultPersistListener.class)
@Table(name = "mas_country")
public class Country extends Model {

    @Id
    @Column(name = "id", nullable = false, length = 120)
    private String id; //国家编码

    @Column(name = "NAME", nullable = false, length = 200)
    private String name; //国家名称

    @Column(name = "en_name", length = 200)
    private String enName; //英文名称

}
